/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fsktms.request;


/**
 *
 * @author salm
 */
public class Request implements IRequest
{
    private String requestName;
    private RequestParameters requestParams;
    private IRequestDelegate requestDelegate;
    private int timeOut = 20000;
    
    public Request(String requestName, RequestParameters params, IRequestDelegate delegate)
    {
        this.requestDelegate = delegate;
        this.requestName = requestName;
        this.requestParams = params;
    }

    /**
     * @return the requestName
     */
    @Override
    public String getRequestName() {
        return requestName;
    }

    /**
     * @param requestName the requestName to set
     */
    @Override
    public void setRequestName(String requestName) {
        this.requestName = requestName;
    }

    /**
     * @return the requestParams
     */
    @Override
    public RequestParameters getRequestParams() {
        return requestParams;
    }

    /**
     * @param requestParams the requestParams to set
     */
    @Override
    public void setRequestParams(RequestParameters requestParams) {
        this.requestParams = requestParams;
    }

    /**
     * @return the requestDelegate
     */
    @Override
    public IRequestDelegate getRequestDelegate() {
        return requestDelegate;
    }

    /**
     * @return the timeOut
     */
    @Override
    public int getTimeOut() {
        return timeOut;
    }

    /**
     * @param timeOut the timeOut to set
     */
    @Override
    public void setTimeOut(int timeOut) {
        this.timeOut = timeOut;
    }
}
